import Router from 'koa-router'
import commentController from '../../api/CommentController'
const router = new Router()
router.prefix('/comments')
// 添加评论
router.post('/reply', commentController.addComment)
// 更新评论
router.post('/update', commentController.updateComment)
// 最佳采纳
router.get('/accept', commentController.setBest)
// 点赞
router.get('/hands', commentController.setHands)
export default router
